package com.definity.toolkit.i18n;

import java.util.Locale;
import java.util.ResourceBundle;

public class Config {

	private static ResourceBundle config = ResourceBundle.getBundle("config");

	private Config() {

	}

	public static Locale getLocale() {
		String language = getProperty("language");
		String country = getProperty("country");

		return new Locale(language, country);
	}

	public static String getProperty(String key) {
		return config.getString(key);
	}

}
